package com.enjoyor.soa.traffic.util.enums.signal;

/**
 * 
 * @ClassName: CrossFeature
 * @Description: 路口特性
 * @author: ly
 * @date: 2019年7月19日 下午2:22:41
 */
public enum CrossFeature {
	RingCross("00","环形交叉口"),
	Gate("11","匝道、出入口"),
	Block("21","路段（只有二个方向的路口）"),
	TCross("31","T形路口"),
	YCross("32","Y形路口"),
	TCrossDis("33","错位T形路口"),
	YCrossDis("34","错位Y形路口"),
	Crossroad("41","十字形路口"),
	ObliqueCross("42","斜交路口"),
	MultiCross("51","多路路口"),
	OtherCross("99","其他");

	private final String key;

	private final String value;

	private CrossFeature(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public String getKey() {
		return this.key;
	}

	public String getValue() {
		return this.value;
	}
	public static String getValue(String key) {  
		CrossFeature[] enums = values();  
        for (CrossFeature e : enums) {  
            if (e.getKey().equals(key)) {  
                return e.getValue();  
            }  
        }  
        return null;  
    } 
}
